import {Component} from '@angular/core';
import {NavController, NavParams} from 'ionic-angular';
import {StatusBar} from '@ionic-native/status-bar';
import {AuthFacePage} from '../auth-face/auth-face'

@Component({
  selector: 'page-auth',
  templateUrl: 'auth.html',
})
export class AuthPage {

  auth: object = {
    face: {
      status: false
    },
    operator: {
      status: false
    },
    information: {
      status: false
    },
    alipay: {
      status: false
    }
  }

  constructor(public navCtrl: NavController,
              private statusBar: StatusBar,
              public navParams: NavParams) {
    this.auth = {
      face: {
        status: true
      },
      operator: {
        status: false
      },
      information: {
        status: true
      },
      alipay: {
        status: true
      }
    }
  }

  itemSelected(item) {
    this.navCtrl.push(item.page)
  }

  ionViewWillEnter() {
    console.log('ionViewDidLoad AuthPage');
    this.statusBar.styleLightContent()
    this.statusBar.backgroundColorByHexString('#55000000')
  }

}
